package com.example.maggie.meizinote.mvp.ui.activity;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.model.stream.HttpGlideUrlLoader;
import com.example.maggie.meizinote.R;
import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;

/**
 * Created by addis on 2018/4/29.
 */
public class BigImageActivity extends BaseActivity {
    private ImageView image;

    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {

    }

    @Override
    public int initView(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_big_image;
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {
        setTitle("查看图片");
        String url = getIntent().getStringExtra("image");
        Glide.with(this).load(url).into(image);
    }
}
